package com.ry.est.service.impl;

import com.ry.est.constants.Constants;
import com.ry.est.dao.BrandClassifyRelationDao;
import com.ry.est.service.BrandClassifyRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandClassifyRelationServiceImpl
        implements BrandClassifyRelationService {
    @Autowired
    private BrandClassifyRelationDao brandClassifyRelationDao;

    @Override
    public List<Long> listBrandIdsByClassifyId(Long classifyId) {
        return brandClassifyRelationDao
                .listBrandByClassifyId(classifyId, Constants.EST_NOT);
    }
}
